package ubcns.lib.customtab;
import android.graphics.drawable.Drawable;
import android.view.View;

enum TabInfoType 
{
        viewOnly, labelOnly, labelAndIcon,
}

public class TabInfo 
{
        private Class<?> activityClass;
        private String tag;
        private String label;
        private Drawable icon;
        private View view;
        private TabInfoType infoType;

        public final TabInfoType getInfoType() 
        {
                return infoType;
        }

        public final Class<?> getActivityClass() 
        {
                return activityClass;
        }

        public final String getTag() 
        {
                return tag;
        }

        public final String getLabel() 
        {
                return label;
        }

        public final Drawable getIcon() 
        {
                return icon;
        }

        public final View getView() 
        {
                return view;
        }

        public TabInfo(Class<?> activityClass, String tag, String label)
        {
                this.activityClass = activityClass;
                this.tag = tag;
                this.label = label;
                this.infoType = TabInfoType.labelOnly;
        }

        public TabInfo(Class<?> activityClass, String tag, String label, Drawable icon) 
        {
                this.activityClass = activityClass;
                this.tag = tag;
                this.label = label;
                this.icon = icon;
                this.infoType = TabInfoType.labelAndIcon;
        }

        public TabInfo(Class<?> activityClass, String tag, View view) 
        {
                this.activityClass = activityClass;
                this.tag = tag;
                this.view = view;
                this.infoType = TabInfoType.viewOnly;
        }
}
